﻿Imports System
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices

Namespace Google.Desktop.Interop
    <ComImport(), TypeLibType(CShort(&H10C0)), Guid("CE714D64-8BA7-4C0A-BC7A-B9249731E3F6")> _
    Public Interface IGoogleDesktopQueryAPI

        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H418)> _
        Function Query(<[In]()> ByVal cookie As Integer, <[In](), MarshalAs(UnmanagedType.BStr)> ByVal QueryStr As String, <[In](), MarshalAs(UnmanagedType.Struct)> Optional ByVal category As Object = Nothing, <[In](), MarshalAs(UnmanagedType.Struct)> Optional ByVal ranking As Object = Nothing) As <MarshalAs(UnmanagedType.Interface)> IGoogleDesktopQueryResultSet

        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H419)> _
        Function QueryEx(<[In]()> ByVal cookie As Integer, <[In](), MarshalAs(UnmanagedType.BStr)> ByVal QueryStr As String, <[In](), MarshalAs(UnmanagedType.Struct)> Optional ByVal category As Object = Nothing, <[In](), MarshalAs(UnmanagedType.Struct)> Optional ByVal ranking As Object = Nothing) As <MarshalAs(UnmanagedType.Interface)> IGoogleDesktopQuery

    End Interface
End Namespace

